Class ZipTable
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JTable
|
+----ZipTable
- public class ZipTable
- extends JTable
Class zip table extends JTable, but specialize it : the render (with icons, and selected color)
- Version:
- 1.0
- Author:
- Frank Moisant - Patrick Titiano
-
data
-
-
defaultIcon
-
-
font
-
-
iconTable
-
-
iconWork
-
-
ZipTable(Vector, Vector)
- Class constructor
-
isCellEditable(int, int)
- Return if the cell in row,col is editable
-
setHashtable()
- Set the global hashtable of ImageIcon indexed by the file extension
defaultIcon
private static ImageIcon defaultIcon
iconTable
private static Hashtable iconTable
iconWork
private ImageIcon iconWork
font
private Font font
data
private Vector data
ZipTable
public ZipTable(Vector dataTable,
Vector nameColumn)
- Class constructor
- Parameters:
- dataTable - the table (vector of vectors) where data are stored
- nameColumn - title of columns
isCellEditable
public boolean isCellEditable(int row,
int col)
- Return if the cell in row,col is editable
- Parameters:
- row - the row of the cell
- col - the colomn of the cell
- Returns:
- always false the table is not editable
- Overrides:
- isCellEditable in class JTable
setHashtable
public void setHashtable()
- Set the global hashtable of ImageIcon indexed by the file extension